package com.charles.springcloud.service;

import com.charles.springcloud.service.PaymentHystrixService;
import org.springframework.stereotype.Component;

/**
 * @Author: 风中灵劲草
 * @Date: 2021/08/10/16:36
 * @Description: 通配服务降级fallback类
 */
@Component
public class PaymentFallBackService implements PaymentHystrixService {

    @Override
    public String paymentInfo_Ok(Integer id) {
        return "paymentFallBackService FallBack payemntInfo_ok O(∩_∩)O哈哈~";
    }

    @Override
    public String paymentInfo_TimeOut(Integer id) {
        return "paymentFallBackService FallBack payemntOutTime o(╥﹏╥)o";
    }
}
